<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
	<TITLE></TITLE>
	<META NAME="GENERATOR" CONTENT="OpenOffice.org 2.3  (Win32)">
	<META NAME="AUTHOR" CONTENT="jm224">
	<META NAME="CREATED" CONTENT="20080309;17500000">
	<META NAME="CHANGEDBY" CONTENT="Sean Fabri">
	<META NAME="CHANGED" CONTENT="20080310;14354043">
	<STYLE TYPE="text/css">
	<!--
		@page { size: 21cm 29.7cm; margin: 1.27cm }
		P { margin-bottom: 0.21cm; direction: ltr; color: #000000; line-height: 115%; widows: 2; orphans: 2 }
		P.western { font-family: "Calibri", sans-serif; font-size: 11pt; so-language: en-GB }
		P.cjk { font-family: "Times New Roman", serif; font-size: 11pt }
		P.ctl { font-family: "Calibri", sans-serif; font-size: 11pt; so-language: ar-SA }
	-->
	</STYLE>
</HEAD>
<BODY LANG="en-GB" TEXT="#000000" DIR="LTR">
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0.35cm; line-height: 100%">
<FONT SIZE=5><U>Software Engineering</U></FONT></P>
<P CLASS="western" ALIGN=CENTER STYLE="margin-bottom: 0.35cm; line-height: 100%">
<FONT SIZE=5><U>House 6</U></FONT></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm; line-height: 100%"><FONT SIZE=4 STYLE="font-size: 16pt"><B>Document
Title: </B></FONT>Acceptance_Criteria.html</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm; line-height: 100%"><FONT SIZE=4 STYLE="font-size: 16pt"><B>Document
Version: </B></FONT><FONT SIZE=2 STYLE="font-size: 11pt"><SPAN STYLE="font-weight: medium">1.0
</SPAN></FONT>(07.03.08)</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm; line-height: 100%"><FONT SIZE=4 STYLE="font-size: 16pt"><B>Document
Author: </B></FONT>Ben Jones, Jaime McFadden and Rob Lowdon.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm; line-height: 100%"><FONT SIZE=4 STYLE="font-size: 16pt"><B>Audited
By: </B></FONT>Ben Jones</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm; line-height: 100%"><FONT SIZE=4 STYLE="font-size: 16pt"><B>Test
Environment:</B></FONT></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%">To environment which
testing will be carried out in will be as follows:</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<UL>
	<LI><P STYLE="margin-bottom: 0cm; line-height: 100%">The machine
	(OS) to be used is Windows/Solaris. 
	</P>
	<LI><P STYLE="margin-bottom: 0cm; line-height: 100%">The load
	conditions will be:</P>
	<UL>
		<LI><P STYLE="margin-bottom: 0cm; line-height: 100%">A functional
		installation of one of the above operating systems.</P>
		<LI><P STYLE="margin-bottom: 0cm; line-height: 100%">A version of
		Java, with which to run the program (Eclipse).</P>
		<LI><P STYLE="margin-bottom: 0cm; line-height: 100%">A build of the
		rendering software.</P>
	</UL>
	<LI><P STYLE="margin-bottom: 0cm; line-height: 100%">The data files
	necessary include:</P>
	<UL>
		<LI><P STYLE="margin-bottom: 0cm; line-height: 100%">The test code
		files.</P>
		<LI><P STYLE="margin-bottom: 0cm; line-height: 100%">A test index
		file to guide the testing, specifying the nature of each test.</P>
	</UL>
</UL>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm; line-height: 100%"><FONT SIZE=4 STYLE="font-size: 16pt"><B>Acceptance
Tests:</B></FONT></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%">The tests employed
will consist of two types: function and stress. The function files
will test whether a function operates correctly and as expected. The
stress files will be used to highlight flaws within the renderer,
stress testing the code in an attempt to identify the limitations on
its capability. For each of these tests to be run the user will need
a current build of the renderer. Below are the files which have been
written to enable this method of testing, which have been grouped
together for the convenience of programmers as tests on certain
functions are likely to occur at similar times. These may be
separated at a later date if requested by the programming team.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><B>Function tests</B></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><U>Function test 1</U></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test description:
</I> Function test 1 has basic head and body text to check the
functionality of these tags. It can also be used to check the
functionality of the font resizing and font colour change which will
be accessed through the graphical user interface.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test file
required: </I>Function test 1.txt</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Results expected:</I>
Display of header and body text in correct positions. Font size and
colour to be changed when prompted through the GUI.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><U>Function test 2</U></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test description:
</I>Function test 2 will involve testing header tags at various
levels to check that the output is consistent with the requirements.
It will also test the bold, italic, underline and teletype tags to
verify whether or not these are performing correctly.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test file
required: </I>Function test 2.txt</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"> <I>Results
expected:</I> Header tag numbering should be correct. The format of
bold, italic, underline and teletype text should be properly
displayed.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><U>Function Test 3</U></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test description:</I>
Function test 3 will be checking the functionality of ordered and
unordered lists.  Ordered lists include number pointed lists.
Unordered lists include bullet point lists.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test file
required: </I>Function test 3.txt<I> </I>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Results expected:
</I>The lists should be produced correctly.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><U>Function Test 4</U></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test description:
</I>Function test 4 will test the definition tags: title and
description. It will also test to ensure that the indentation is
produced as desired. 
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test file
required: </I>Function test 4.txt</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Results expected:
</I>A definition list should be displayed to the requirements of the
user, with the correct indentation below the definition title.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><U>Function Test 5</U></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test description:</I>
Function test 5 checks the formatting of centred text, pre-formatted
text and block quotes. It will also check the paragraph and
horizontal rule functions.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test file
required:</I> Function test 5.txt</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Results expected:
</I>The centring of text and block quotes should be displayed
properly; block quotes should also be indented and in teletype.
Pre-formatted text should be formatted correctly. The paragraph tag
will end the current paragraph and output a blank line before the
next paragraph starts. The horizontal rule tag will create a new line
with an underline running the width of the window, then restart the
text on the line underneath.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><U>Function Test 6</U></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test description:</I>
Function test 6 will include a test for formatting simple tables and
one level of nested tables. This will also test the horizontal scroll
bar, as it will be wider than the window.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test file
required: </I>Function test 6.txt</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Results expected:
</I>The expected result of this test is to produce tables which are
displayed correctly. 
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><U>Function Test 7 </U>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test description:</I>
Function test 7 is a test for more than one level of nesting tables.
This will be a provisional test conditional on whether or not the
design and programming teams implement this as an additional feature.
This is something that was considered, but no commitment was made to
include this function.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test file
required: </I>Function test 7.txt</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Results expected:</I>
The expected result of this test is to produce more than one level of
nested tables which are displayed correctly.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><U>Function Test 8</U></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test Description:
</I>This test will check the function of image rendering. The image
will be stored locally for the renderer to access.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test file
required: </I>Function test 8.txt and an image file stored locally.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Results expected:</I>
The image should appear in the rendered document on a new line (text
will not wrap round the image) and the text will continue underneath
it.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><U>Complete Function
Test</U></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test description:</I>
The complete function test will include all of the previous tests,
stored in one location to test all functions within one file. 
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Test file
required: </I>Complete function test.txt</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><I>Results expected:</I>
The results of the function tests 1-7.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><U><B>Stress tests</B></U></P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%">These tests are not
just composed of a range of code with missing tags, as although this
is important it will not pick up all of the potential problems. Some
of the tests are based around the amount of code that the renderer
has to deal with, or situations that will force the text to be
displayed a certain way. Due to this, not all of the tests will cause
errors to appear in the error log, though they may cause the data to
be displayed incorrectly.</P>
<P STYLE="margin-bottom: 0cm; line-height: 100%"><BR>
</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><U>Stress test 1</U></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test description:
</I>This test file is designed to test the renderer to see if it can
cope with broken header tags. 
</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test file
required: </I>Stress test 1.txt</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Result Expected:
</I>An error listing should appear in the error log stating the error
(and possibly also the type of error).  The window that the renderer
produces should show:</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"> &ldquo;Stress Test
NoEndTag &lt;title&gt;Stress Test One&rdquo; in the title.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><U>Stress Test 2</U></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test Description:</I>
This file is for testing the headers, it is similar to the second
function test file, but this time there are two consecutive level one
headers. These are followed by a level three header, then a level two
header. This should test to see how the renderer copes with multiple
tags at the same level, followed by jumping one level. The next tag
is level two, to see how out of phase tags are dealt with. The last
tag is level five, to once more test the jump in header tags.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test File
Required:</I> Stress test 2.txt</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Result Expected:
</I>At each level of header, the renderer should display the text in
the correct font size for the level.<I> </I>The first two<I> </I>lines
will appear as level one headers, after this there will be a third
level header. The next line will be a second level header followed by
a fifth level header. Within the test file there are also font style
tags that will test the nesting ability within the headers. These are
for the basic types (bold, italics, teletype etc.). An error log
report should not be required, as the tags are all complete and
within the bounds of the task.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><U>Stress Test 3</U></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test Description:
</I>The third test checks handling of erroneous list tags. It starts
with a bullet point tag outside of the opening and closing tags for
an ordered or unordered list. Then it tries to close an unordered
list that has not been opened. It then opens an unordered list, and
after one bullet point opens a nested ordered list. After a few
points the unordered list (outside of nested statement) is closed.
One more bullet point is then tried, followed by a line of standard
text without closing the list.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test File
Required: </I>Stress test 3.txt</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Result Expected:
</I>The first and last bullet points should appear<I> </I>with no
indentation. The second bullet point should appear with the normal
indentation, and be followed by a numbered list with further
indentation. There should be entries into the error log for broken or
orphaned tags.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><U>Stress Test 4</U></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test Description:</I>
This test is to see how the renderer deals with definition tags.
There will be a test to see how it performs without the opening and
closing definition list tags (&lt;dl&gt; and &lt;/dl&gt;), along with
a test to see if it can deal with the title and definition tags in
reverse order.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test File
Required: </I>Stress test 4.txt</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Result Expected:
</I>As this test does not have any orphaned tags there should be
nothing to go to the error log. The opening and closing definition
list tags represent good HTML, but are not essential for a correct
rendering. The definition should be indented, and the title should
not. The ordering of them should not affect this.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><U>Stress Test 5</U></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test Description:
</I>This file contains the block quote from the function test file 5,
but inside of the quote there is some &lt;center&gt; tags to check
the outcome. There then follows some pre-formatted text to ensure
that the format is followed. This is punctuated by &lt;br&gt; tags
and pre-set spaces.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test File
Required: </I>Stress test 5.txt</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Result Expected:</I>
The block quote section should be centred and the break tag should be
effective. For the pre-formatted text the spacing should all be kept
as it appears, but the break tags should also be acted upon despite
being within a pre-formatted section.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><U>Stress Test 6</U></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test Description:</I>
This test is for tables with an uneven number of elements on the
various rows. The number of elements on two of the rows will ensure
that the rows are not wrapped on the screen; the first column has
enough elements in it to test the vertical scroll bar function.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test File
Required:</I> Stress test 6.txt</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Result Expected:</I>
The table should appear as a large capital E, which will be large
enough to utilise both scroll bars.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><U>Stress Test 7</U></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test Description:</I>
This file is missing the &lt;body&gt; tags to test the dependency.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test File
Required:</I> Stress test 7.txt</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Result Expected:</I>
The text in the file should still be shown in the standard settings.
Depending on the settings of the error identification a log entry may
be made.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><U>Stress Test 8</U></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test Description:</I>
A large number of lines to see if the renderer can cope.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test File
Required:</I> Stress test 8.txt</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Result Expected:</I>
This file has 1000 lines in it, some have a newline tag after each
one, others don't. The first 500 lines will appear on separate lines,
the next 500 will form a block of text with line markers every 100
lines.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><U>Stress Test 9</U></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test Description:</I>
This test has two complete pages in it, with both header and body
tags.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test File
Required:</I> Stress test 9.txt</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Result Expected:</I>
The second header should be ignored and the pages merged to form one
large page.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><U>Stress Test 10</U></P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test Description:</I>
</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm">The tests involved
here are as follows:</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm">1.  Two full titles</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm">2.  Text outside the
body tags</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm">3.  Disordered sub
headings involving a repeat of level one.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm">4.  The erratic
bullet points from the third stress test.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm">5.  The definition
list tests from the fourth stress test.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm">6.  The centre,
blockquote and pre format tests from the fifth stress test.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm">7.  The big odd
shaped table from the sixth test.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm">8.  The one thousand
lines from stress test eight.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm">The tests included
here cover everything we could think of to break the software, the
last two points are there to try and stress the renderer into making
some sort of error.</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Test File
Required:</I> The complete stress test.txt</P>
<P CLASS="western" STYLE="margin-bottom: 0.35cm"><I>Result Expected:</I>
The results should be as they were for the smaller tests, with error
log reports where appropriate. The main purpose here is seeing how
the renderer can handle a lot of errors at the same time as a lot of
lines of code.</P>
</BODY>
</HTML>